home *** CD-ROM | disk | FTP | other *** search
/ 3D Images / 3D Images.iso / programs / amiga / rayshade / include / makefile.src < prev    next >
C/C++ Source or Header  |  1995-01-12  |  814b  |  54 lines

  1. #
  2. # Makefile for include subdirectory.
  3. # Only thing to do here is install the .h files somewhere if INC_DEST is
  4. # set.
  5. #
  6.  
  7. # No default action.
  8. default:
  9.  
  10. #ifdef INC_DEST
  11. #set DEST INC_DEST
  12. DEST =
  13. #endif
  14.  
  15. HDRS = \
  16.     exit_status.h \
  17.     pyramid.h \
  18.     rle.h \
  19.     rle_code.h \
  20.     rle_put.h \
  21.     rle_raw.h 
  22.  
  23. install: $(HDRS)
  24.     @sh -c "if test 'x$(DEST)' != x ; then \
  25.         if test 'x$(HDRS)' != x ; then eval \
  26.             'for hdr in $?; do \
  27.                 echo cp \$$hdr $(DEST)/\$$hdr ; \
  28.                 cp \$$hdr $(DEST)/\$$hdr; \
  29.             done' ; \
  30.         else \
  31.             true ; \
  32.         fi ; \
  33.     else \
  34.         true ; \
  35.     fi"
  36.     touch install
  37.  
  38. # Nothing to clean
  39. clean:
  40.  
  41. # Remove installed headers
  42. pristine:
  43.     @-if test "x$(DEST)" != x ; then eval \
  44.         'for hdr in $(HDRS); do \
  45.             echo rm -f $(DEST)/$$hdr; \
  46.             rm -f $(DEST)/$$hdr; \
  47.         done' ; \
  48.     else \
  49.         true ; \
  50.     fi
  51.     rm -f install
  52.  
  53.